package com.wechat.enums;

import java.net.URL;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 使用的图片
 * 
 * @author DELL
 */
@Getter
@RequiredArgsConstructor
public enum Images {

	/**
	 * 添加好友
	 */
	Add_User(images("addUser.png")),

	/**
	 * Logo
	 */
	Logo(images("logo.png"));

	/**
	 * 图标集
	 */
	public final URL[] images;

	/**
	 * 加载图片
	 * 
	 * @param images
	 * @return
	 */
	public static URL[] images(String... images) {
		URL[] urls = new URL[images.length];
		for (int i = 0; i < images.length; i++) {
			urls[i] = Images.class.getResource("/images/" + images[i]);
		}
		return urls;
	}
}